package com.mixed.db.model;

import java.sql.Timestamp;
import java.util.Date;

public class Menu extends Entity<Menu> {
	
	private static final long serialVersionUID = 6479275824561121749L;

	private String name;
	
	private Integer menuType;
	
	private Long parentId;
	
	private Integer orderIndex;
	
	private Timestamp  createDate;

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setMenuType(Integer menuType) {
		this.menuType = menuType;
	}

	public Integer getMenuType() {
		return menuType;
	}

	public void setCreateDate(Date createDate) {
		Timestamp sqlDate = new Timestamp(createDate.getTime());
		this.createDate = sqlDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setOrderIndex(Integer orderIndex) {
		this.orderIndex = orderIndex;
	}

	public Integer getOrderIndex() {
		return orderIndex;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getParentId() {
		return parentId;
	}

}
